#!/bin/bash
if [ $# -ne 1 ]; then
    echo "$0" svn_address
    exit 0
fi

svn_addr="$1"

set -xv
cat svn.repo | while read line
do 
	echo $line
	repo=$line
	svnadmin create `pwd`/$repo
	cp ./$repo/hooks/pre-revprop-change.tmpl ./$repo/hooks/pre-revprop-change
	sed -i 's/exit 1/exit 0/' ./$repo/hooks/pre-revprop-change	
	svnsync init file://`pwd`/$repo $svn_addr/$repo
done
exit 0
